﻿using Microsoft.Xna.Framework;

namespace MapEditor.Tiles
{
    static class TileFactory
    {
        public static Tile Get(TileType tileType, int type, int tileX, int tileY, bool showGrid)
        {
            switch (tileType.Identifier)
            {
                case RegularTile.Identifier:
                    return new RegularTile(type, tileX, tileY, showGrid);
                case EmptyTile.Identifier:
                    return new EmptyTile();
                default:
                    return new RegularTile(type, tileX, tileY, showGrid);
                
            }
        }
    }
}
